package com.ss.android.article.base.utils;

import android.os.AsyncTask;
import android.view.View;
import com.bytedance.common.utility.Logger;

final class h extends AsyncTask {
    private final g a;

    h(g arg1) {
        this.a = arg1;

    }

    protected final Object doInBackground(Object[] arg4) {
        Object v0 = this.a.a.get();
        Integer v0_1 = v0 != null ? Integer.valueOf(f.a(this.a.b, ((View)v0), 1)) : Integer.valueOf(-1);
        return v0_1;
    }

    protected final void onPostExecute(Object arg3) {
        super.onPostExecute(arg3);
        if (this.a.b != null && ((Integer) arg3).intValue() >= 0) {
            if (((Integer) arg3).intValue() > 19) {
//                Logger.b("ViewDepthUtils", this.a.c + ", View depth: " + arg3 + ", May cause StackOverflowError!!!");
            } else {
//                Logger.b("ViewDepthUtils", this.a.c + ", View depth: " + arg3);
            }
        }
    }
}

